#ifndef RXE_PARAM_H
#define RXE_PARAM_H


#include <uapi/rdma/rdma_user_rxe.h>

static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu)
{
    if (mtu < 256)
        return 0;
    else if (mtu < 512)
        return IB_MTU_256;
    else if (mtu < 1024)
        return IB_MTU_512;
    else if (mtu < 2048)
        return IB_MTU_1024;
    else if (mtu < 4096)
        return IB_MTU_2048;
    else
        return IB_MTU_4096;
}

/* Find the IB mtu for a given network MTU. */
static inline enum ib_mtu eth_mtu_int_to_enum(int mtu)
{
    mtu -= RXE_MAX_HDR_LENGTH;

    return rxe_mtu_int_to_enum(mtu);
}

enum rxe_device_param {
    RXE_MAX_MR_SIZE = -1ull,
    RXE_MAX_QP_WR = 0x4000,
    RXE_MAX_SGE = 32,
    RXE_MAX_WQE_SIZE = sizeof(struct rxe_send_wqe) + sizeof(struct ib_sge) * RXE_MAX_SGE,
    RXE_MAX_INLINE_DATA = RXE_MAX_WQE_SIZE - sizeof(struct rxe_send_wqe),






};

enum rxe_port_param {

};

/* default/initial port info parameters */
enum rxe_port_info_param {
    RXE_PORT_INFO_VL_CAP = 4,
    RXE_PORT_INFO_MTU_CAP = 5,
    RXE_PORT_INFO_OPER_VL = 1,
};

#endif
